package com.wd.live.wxapi

import android.content.Context

/**
 * 作者：马海钊
 * 时间：2023/8/16 10:23
 * 功能：
 */
class LoginHelper {
    companion object {
        @JvmStatic
        fun saveWXLoginCode(context: Context, code: String) {
            val sp = context.getSharedPreferences("login_info", Context.MODE_PRIVATE)
            sp.edit().putString("wx_code", code).commit()
        }

        fun getWxLoginCode(context: Context): String? {
            val sp = context.getSharedPreferences("login_info", Context.MODE_PRIVATE)
            return sp.getString("wx_code", null)
        }
    }
}